﻿namespace NuGetCop.MSBuild.Tasks
{
    using System.Diagnostics.Contracts;

    internal static class NuGetPackageCheckResultExtensions
    {
        public static bool IsSuccess(this INuGetPackageCheckResult target)
        {
            Contract.Requires(target != null);

            var isSuccess = target.Errors.Count == 0;
            return isSuccess;
        }
    }
}